package com.course.controller;

import com.course.utils.web.HttpAction;
import com.course.utils.web.HttpReq;
import com.course.utils.web.HttpRespCallBack;
import com.course.utils.web.MapBuilder;

public class ConfigController {
    static ConfigController instance;

    public static ConfigController getInstance() {
        if (instance == null) {
            instance = new ConfigController();
        }
        return instance;
    }

    public void get(HttpRespCallBack httpRespCallBack) {
        HttpReq.getInstance().post(HttpAction.configGet.getValue(),
                new MapBuilder<String, Object>().getMap(),
                httpRespCallBack);
    }
}


